package com.example.psychologicalappointmentsystem.Object;

import com.example.psychologicalappointmentsystem.common.ParamCheck;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import java.time.LocalDateTime;

/**
 * ClassName ChatMessageVO
 * Description TODO 接受消息
 * Date 2025/2/14 16:36
 * Version 1.0
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class ChatMessageVO {
    private Long id;
    private Long senderId;
    private Long receiverId;
    private String content;
    private LocalDateTime timestamp;
    private String status;
    private String ResultContent;
    private String emotion;


    public void checkReceiverId(){
        ParamCheck.mustNonNull(receiverId, "接受消息用户id 不能为空");
    }
}
